/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: Outer
 * Author:   666
 * Date:     2020/6/29 22:21
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_007.innerclass;

/**
 * @Classname Outer
 * @Description TODO
 * @Date 2020/6/29 22:21
 * @Created by 666
 */
public class Outer {
    private String name = "zhangsan";

    class inner1 {
        private String name = "lisi";
        int conser;

        public void innerPrint() {
            System.out.println(name);
            System.out.println(Outer.this.name);
        }
    }

    class inner2 extends inner1 {
        public inner2(int index) {
            conser = index;
        }

        private String name = "lisi";


        public void innerPrint() {
            System.out.println(name);
            System.out.println(Outer.this.name);
        }
    }

    public void show() {
        // innerPrint();
    }

    public static void main(String[] args) {
        Outer.inner1 inner1 = new Outer().new inner1();
        inner1.innerPrint();
    }
}
